<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>第二个模板</title>
	</head>
	<body>
		{{ student_dict }}

		<table border="1px">
			<tr>
				<td>编号</td>
				<td>姓名</td>
				<td>年龄</td>
				<td>性别</td>
			</tr>
			{% for stu_key, student in student_dict.items() %}
				<tr>
					<td>{{ loop.index }} Key: {{ stu_key }}</td>
					<td>{{ student.name }}</td>
					{% if student.age >=  60 %}
						<td>已退休</td>
					{% elif student.age >= 18 and student.age < 60 %}
						<td>成年人</td>
					{% else %}
						<td>未成年人</td>
					{% endif %}
					<td>{{ student['gender'] }}</td>
				</tr>
			{% endfor %}

		</table>
	</body>
</html>